@isTest
private class drvCtlr_Tests {

    public static testMethod void testMyController() //default and 30 day test
    {
        test.startTest();
        //centralized data create
        Account acc = cls_CreateTestRecords.createAccount(); 
        
        Country__c Countries = cls_CreateTestRecords.createCountries();
        //Country__c Countries = new Country__c();
        //Countries.Name = 'Egyptian';
        //Countries.eFormCode__c = 'Test';
        //Countries.IsActive__c = true;
        //insert Countries;
        
        Occupation__c OCP = cls_CreateTestRecords.createOccupation();
        Qualification__c QualificationsList = cls_CreateTestRecords.createQualiciation();
        Passport_Type__c pt = cls_CreateTestRecords.createPassportType();
        CountriesList__c CountriesList = cls_CreateTestRecords.createCountriesList();
        //cls_CreateTestRecords.createFormRecords1(); 
        
        Form_Header__c formHeader0 = new Form_Header__c();
         formHeader0.Name = 'Non DIFC Sponsorship Form - Renewal';
         formHeader0.Barcode_Type__c = 'QR';
        insert formHeader0 ;
        
        /*Field_Master__c masterObject0 = new Field_Master__c();
         masterObject0.API_Name__c = '';
         masterObject0.IsActive__c = true;
         masterObject0.Name = '';
         masterObject0.Reference_To__c = '()';
         masterObject0.Referencing_Value__c = '';
        insert masterObject0 ;
        Form_Detail__c formDetai0 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader0.Id , Field_Master__c = masterObject0.Id); insert formDetai0 ;
        */
        Field_Master__c masterObject1 = new Field_Master__c();
         masterObject1.API_Name__c = 'DRV_Sponser_Passport_Expiry__c';
         masterObject1.IsActive__c = true;
         masterObject1.Name = 'DRV Sponser Passport Expiry';
         masterObject1.Reference_To__c = '()';
         masterObject1.Referencing_Value__c = 'eFormCode__c';
        insert masterObject1 ;
        Form_Detail__c formDetai1 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader0.Id , Field_Master__c = masterObject1.Id); insert formDetai1 ;
        
        Field_Master__c masterObject2 = new Field_Master__c();
         masterObject2.API_Name__c = 'DRV_Sponser_First_Name__c';
         masterObject2.IsActive__c = true;
         masterObject2.Name = 'DRV Sponser First Name';
         masterObject2.Reference_To__c = '()';
         masterObject2.Referencing_Value__c = 'eFormCode__c';
        insert masterObject2 ;
        Form_Detail__c formDetai2 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader0.Id , Field_Master__c = masterObject2.Id); insert formDetai2 ;
        
        Field_Master__c masterObject3 = new Field_Master__c();
         masterObject3.API_Name__c = 'Gender__c';
         masterObject3.IsActive__c = true;
         masterObject3.Name = 'Geneder';
         masterObject3.Reference_To__c = '()';
         masterObject3.Referencing_Value__c = 'eFormCode__c';
        insert masterObject3 ;
        Form_Detail__c formDetai3 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader0.Id , Field_Master__c = masterObject3.Id); insert formDetai3 ;
        
        Field_Master__c masterObject4 = new Field_Master__c();
         masterObject4.API_Name__c = 'Country_of_Birth__c';
         masterObject4.IsActive__c = true;
         masterObject4.Name = 'Country Of Birth';
         masterObject4.Reference_To__c = '(CountriesList__c)';
         masterObject4.Referencing_Value__c = 'eFormCode__c';
        insert masterObject4 ;
        Form_Detail__c formDetai4 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader0.Id , Field_Master__c = masterObject4.Id); insert formDetai4 ;
        
        Field_Master__c masterObject5 = new Field_Master__c();
         masterObject5.API_Name__c = 'Sponsor_Department__c';
         masterObject5.IsActive__c = true;
         masterObject5.Name = 'Sponsor Department';
         masterObject5.Reference_To__c = '()';
        insert masterObject5 ;
        
        Constant__c con5 = new Constant__c(Field_Master__c = masterObject5.id);
        
        Form_Detail__c formDetai5 = new Form_Detail__c(Default_Value__c = con5.id ,  Source__c = 'Constant' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader0.Id , Field_Master__c = masterObject5.Id); insert formDetai5 ;
        
        
        
        Field_Master__c masterObject6 = new Field_Master__c();
         masterObject6.API_Name__c = 'Normal_Passport__c';
         masterObject6.IsActive__c = true;
         masterObject6.Name = 'Normal_Passport__c';
         masterObject6.Reference_To__c = '()';
        insert masterObject6 ;
        
        Constant__c con6 = new Constant__c(Field_Master__c = masterObject6.id , Value__c = 'Normal' );
        
        Form_Detail__c formDetai6 = new Form_Detail__c(Default_Value__c = con6.id ,  Source__c = 'Constant' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader0.Id , Field_Master__c = masterObject6.Id); insert formDetai6 ;
        
        
        
        Form_Header__c formHeader1 = new Form_Header__c();
         formHeader1.Name = 'Non DIFC Sponsorship Form - New - Outside UAE - Visa Stamping';
         formHeader1.Barcode_Type__c = 'PDF417';
        insert formHeader1 ;
        Form_Detail__c formDetai7 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader1.Id , Field_Master__c = masterObject1.Id); insert formDetai7 ;
        Form_Detail__c formDetai8 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader1.Id , Field_Master__c = masterObject2.Id); insert formDetai8 ;
        Form_Detail__c formDetai9 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader1.Id , Field_Master__c = masterObject3.Id); insert formDetai9 ;
        Form_Detail__c formDetai10 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader1.Id , Field_Master__c = masterObject4.Id); insert formDetai10 ; 
        Form_Detail__c formDetai11 = new Form_Detail__c(Default_Value__c = con5.id ,  Source__c = 'Constant' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader1.Id , Field_Master__c = masterObject5.Id); insert formDetai11 ;
        Form_Detail__c formDetai12 = new Form_Detail__c(Default_Value__c = con6.id ,  Source__c = 'Constant' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader1.Id , Field_Master__c = masterObject6.Id); insert formDetai12 ; 
         
        
        Form_Header__c formHeader2 = new Form_Header__c();
         formHeader2.Name = 'SAP3';
         formHeader2.Barcode_Type__c = 'QR';
        insert formHeader2 ; 
        
        Field_Master__c masterObject7 = new Field_Master__c();
         masterObject7.API_Name__c = 'Last_Name__c';
         masterObject7.IsActive__c = true;
         masterObject7.Name = 'Last Name';
         masterObject7.Reference_To__c = '()';
         masterObject7.Referencing_Value__c = 'eFormCode__c';
        insert masterObject7 ;
        Form_Detail__c formDetai13 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader2.Id , Field_Master__c = masterObject7.Id); insert formDetai13 ;
        
        Field_Master__c masterObject8 = new Field_Master__c();
         masterObject8.API_Name__c = 'Gender__c';
         masterObject8.IsActive__c = true;
         masterObject8.Name = 'Geneder';
         masterObject8.Reference_To__c = '()';
         masterObject8.Referencing_Value__c = 'eFormCode__c';
        insert masterObject8 ;
        Form_Detail__c formDetai14 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader2.Id , Field_Master__c = masterObject8.Id); insert formDetai14 ;
        
        Field_Master__c masterObject9 = new Field_Master__c();
         masterObject9.API_Name__c = 'Date_of_Birth__c';
         masterObject9.IsActive__c = true;
         masterObject9.Name = 'Date of Birth';
         masterObject9.Reference_To__c = '()';
         masterObject9.Referencing_Value__c = 'eFormCode__c';
        insert masterObject9 ;
        Form_Detail__c formDetai15 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader2.Id , Field_Master__c = masterObject9.Id); insert formDetai15 ;
        Form_Detail__c formDetai16 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader2.Id , Field_Master__c = masterObject4.Id); insert formDetai16 ;
         
         
        Form_Header__c formHeader3 = new Form_Header__c();
         formHeader3.Name = 'Non DIFC Sponsorship Form - New - Outside UAE';
         formHeader3.Barcode_Type__c = 'PDF417';
        insert formHeader3 ;
        Form_Detail__c formDetail17 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader3.Id , Field_Master__c = masterObject1.Id); insert formDetail17 ;
        Form_Detail__c formDetail18 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader3.Id , Field_Master__c = masterObject2.Id); insert formDetail18 ;
        Form_Detail__c formDetail19 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader3.Id , Field_Master__c = masterObject3.Id); insert formDetail19 ;
        Form_Detail__c formDetail20 = new Form_Detail__c( Source__c = 'Form' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader3.Id , Field_Master__c = masterObject4.Id); insert formDetail20 ; 
        Form_Detail__c formDetail21 = new Form_Detail__c(Default_Value__c = con5.id ,  Source__c = 'Constant' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader3.Id , Field_Master__c = masterObject5.Id); insert formDetail21 ;
        Form_Detail__c formDetail22 = new Form_Detail__c(Default_Value__c = con6.id ,  Source__c = 'Constant' , Position__c = 1 , Tab_Space__c = '1' , Form_Header__c = formHeader3.Id , Field_Master__c = masterObject6.Id); insert formDetail22 ; 
         
         
        //Test defaults
        PageReference pageRef = Page.drv;
        Test.setCurrentPage(pageRef);
        
        
        //Test One - load default options
        drv_ctlr controller = new drv_ctlr();
        List<SelectOption> TestOptions = new List<SelectOption>();
        controller.testFlagMark();
        controller.Render_NewVisa(); 
        controller.Render_Individual();
        controller.ResetApplication();
        controller.ToMainMenu();
        TestOptions = controller.getCountries();
        TestOptions = controller.getCountriesList();
        TestOptions = controller.getCompanies();
        TestOptions = controller.getJobTitles();
        TestOptions = controller.getQualifications();
        TestOptions = controller.getRelationSponser();
        TestOptions = controller.getGenders();
        TestOptions = controller.getTitles();
        TestOptions = controller.getVRFVisaType();
        TestOptions = controller.getVRFAvailableIn();
        TestOptions = controller.getHoldUAEPermit();
        TestOptions = controller.getMaritalStatuses();
        TestOptions = controller.getReligions();
        TestOptions = controller.getPortOfEntries();
        TestOptions = controller.getTitles();
        
        /*
        
        
        //Load blank/default application data for validation
        controller.Application.Company_Name__c = acc.id;
        controller.Application.DRV_Sponser_First_Name__c = 'First';
        controller.Application.DRV_Sponser_Middle_Name__c = 'Middle';
        controller.Application.DRV_Sponser_Last_Name__c = 'Last';        
        drv_ctlr.WebParam = '';
        drv_ctlr.stdemo = '';
        drv_ctlr.Initializevariables();
        drv_ctlr.GenerateBarcode();
        controller.getsoapXML();
        controller.getxml();
        controller.Render_NewVisa(); 
        controller.Render_Individual();
        controller.CreateApplication(); //Blank values trigger validation addmessages
        
        //Test Two - target the else conditions from test one
        drv_ctlr controllerTwo = new drv_ctlr();
        controllerTwo.ResetApplication();
        //DATES
        string dateBirth  = String.valueOf(System.Today().addyears(1)); 
        dateBirth = string.valueOf(dateBirth.split('-')[2]+'/'+dateBirth.split('-')[1]+'/'+dateBirth.split('-')[0]);
        controllerTwo.dateOfBirth = dateBirth; 
        controllerTwo.passportIssueDate = String.ValueOf(Date.TODAY());          
        controllerTwo.passportExpiryDate = String.ValueOf(Date.TODAY());
        controllerTwo.SponserPassportExpiry = dateBirth;
        controllerTwo.SponserResidencyExpiry = dateBirth;
        controllerTwo.SponserDate = dateBirth;
             
        //controllerTwo.companyDate = String.ValueOf(Date.TODAY());
        //INPUT DATA     
        controllerTwo.Application.TAMM_VIP_Service__c = true;
        controllerTwo.Application.VRF_Visa_Type__c = 'New Visa'; //Test on other controller
        controllerTwo.Application.VRF_Available_In__c = 'Individual currently outside UAE'; //
        controllerTwo.application.Port_of_Entry__c = 'Dubai International Airport';
        controllerTwo.application.Title__c = 'Mr';
        controllerTwo.application.First_Name__c = 'Cloud';
        controllerTwo.application.Middle_Name__c = 'S';
        controllerTwo.application.Last_Name__c = 'Concept';
        controllerTwo.application.Currently_Nationality__c = Countries.id;
        controllerTwo.application.Previous_Nationality__c = Countries.id;
        controllerTwo.application.Country_of_Birth__c = CountriesList.id;
        controllerTwo.application.City_of_Birth__c = 'SomePlace';
        controllerTwo.application.Passport_Number__c = '2345678AS';
        controllerTwo.application.Passport_Country_of_Issue__c = CountriesList.id;
        controllerTwo.application.Passport_City_of_Issue__c = 'SOMECITY';        
        controllerTwo.application.Mother_Full_Name__c = 'SOMENAME';
        controllerTwo.application.Marital_Status__c = 'Married';
        controllerTwo.application.Religion__c = 'bahaei';
        controllerTwo.Application.Job_Title_Position__c = OCP.id;
        controllerTwo.Application.DRV_Relation_with_Sponser__c = 'Sister';//paulo added oct 2
        controllerTwo.Application.Gender__c = 'female';
        controllerTwo.Application.DRV_Sponser_Title__c = 'Mr'; //Test on new controller not Mr
        controllerTwo.Application.DRV_Sponser_First_Name__c = 'Paulo';
        controllerTwo.Application.DRV_Sponser_Middle_Name__c = 'M';
        controllerTwo.Application.DRV_Sponser_Last_Name__c = 'Orquillo';
        controllerTwo.Application.DRV_Sponser_Currently_Nationality__c = Countries.Id;
        controllerTwo.Application.DRV_Sponser_Home_Phone__c = '12';
        controllerTwo.Application.DRV_Sponser_Office_Phone__c = '12';
        controllerTwo.Application.DRV_Sponser_Visa_Number_1__c = '111';
        controllerTwo.Application.DRV_Sponser_Visa_Number_2__c = '222';
        controllerTwo.Application.DRV_Sponser_Visa_Number_3__c = '333';
        controllerTwo.Application.DRV_Sponser_Passport_Number__c = '12';
        controllerTwo.Application.DRV_Sponser_Company_Name__c = acc.Id;
        //controllerTwo.Application.Company_Name__c = acc.id;
         //calling method...
        controllerTwo.Render_NewVisa(); 
        controllerTwo.Render_Individual();
        controllerTwo.CreateApplication();
        
        
         //Test Three -  invalid date and other value conditions
        drv_ctlr controllerThree = new drv_ctlr();
        
        //Dates
        controllerThree.dateOfBirth = ('32/13/1700'); //Invalid Date          
        controllerThree.passportIssueDate = ('32/13/1700'); //Invalid Date          
        controllerThree.passportExpiryDate = ('32/13/1700'); //Invalid Date
        controllerThree.SponserPassportExpiry = ('32/13/1700'); //Invalid Date
        controllerThree.SponserResidencyExpiry = ('32/13/1700'); //Invalid Date
        controllerThree.SponserDate = ('32/13/1700'); //Invalid Date
        controllerThree.Application.VRF_Visa_Type__c = 'New Visa'; //Test on other controller
        controllerThree.Application.VRF_Available_In__c = null; //         
         //calling method...
        controllerThree.Render_NewVisa(); 
        controllerThree.Render_Individual();
        controllerThree.CreateApplication();    
        
        //Test four - target the else conditions from test one
        drv_ctlr controller4 = new drv_ctlr();
        //controller4.ResetApplication();
        
        controller4.Application.VRF_Visa_Type__c = 'New Visa'; //Test on other controller
        controller4.Application.VRF_Available_In__c = 'Individual currently inside UAE'; //
        controller4.Application.DRV_Sponser_Title__c = 'Ms';
        
         //calling method...
        controller4.Render_NewVisa(); 
        controller4.Render_Individual();
        controller4.CreateApplication();  
        
        //Added By ahmed Adel to Cover Lines 54 and 55
        controller4.Application.VRF_Available_In__c = 'Transfer of visa'; //
        controller4.Render_Individual();*/
         
         
        //Added By Ahmed Adel to Pass all Valaidations and Execute Code Starting from Line 460
        //drv_ctlr ctrl5 = new drv_ctlr(); 
        controller.Application.VRF_Visa_Type__c = 'New Visa';
        controller.Application.VRF_Available_In__c = 'Individual currently outside UAE'; // 
        controller.application.Port_of_Entry__c = 'Dubai International Airport';
        controller.Application.Title__c = 'Ms' ; 
        controller.Application.First_Name__c = 'Ahmed' ;
        controller.Application.Middle_Name__c = 'Adel' ;
        controller.Application.Last_Name__c = 'Taha' ;
        controller.application.Currently_Nationality__c = Countries.id;
        controller.Application.Previous_Nationality__c  = Countries.id;
        controller.Application.Date_of_Birth__c  = Date.TODAY().addYears(-40);
        controller.Application.Country_of_Birth__c = CountriesList.id;
        controller.Application.City_of_Birth__c  = 'Cairo' ;
        controller.Application.Passport_Number__c = '123456' ;
        controller.passportIssueDate = '01/02/2000' ;//String.ValueOf(Date.TODAY());
        controller.passportExpiryDate = '01/02/2000' ;//String.ValueOf(Date.TODAY());
        controller.Application.Passport_Country_of_Issue__c = CountriesList.id;
        controller.Application.Passport_City_of_Issue__c = 'Alex' ;
        controller.Application.Mother_Full_Name__c = 'Mona' ;
        controller.Application.Marital_Status__c = 'Married' ;
        controller.Application.Religion__c = 'bahaei' ;
        controller.Application.Job_Title_Position__c = OCP.id; 
        controller.Application.DRV_Relation_with_Sponser__c = 'Sister'; 
        controller.Application.Gender__c = 'Female' ;
        controller.Application.DRV_Sponser_Title__c = 'Mr';
        controller.Application.DRV_Sponser_First_Name__c = 'Ahmed' ; 
        controller.Application.DRV_Sponser_Middle_Name__c = 'Adel' ;
        controller.Application.DRV_Sponser_Last_Name__c = 'Taha' ;
        controller.Application.DRV_Sponser_Currently_Nationality__c = Countries.Id;
        controller.Application.DRV_Sponser_Home_Phone__c = '2112121' ;
        controller.Application.DRV_Sponser_Office_Phone__c = '2112' ;
        controller.Application.DRV_Sponser_Visa_Number_1__c = '111';
        controller.Application.DRV_Sponser_Visa_Number_2__c = '222';
        controller.Application.DRV_Sponser_Visa_Number_3__c = '333';
        controller.Application.DRV_Sponser_Passport_Number__c = '12';
        controller.Application.DRV_Sponser_Company_Name__c = acc.Id;
        controller.SponserPassportExpiry = '01/02/2000' ;//String.ValueOf(Date.TODAY());
        controller.SponserResidencyExpiry = '01/02/2000' ;//String.ValueOf(Date.TODAY());
        controller.SponserDate = '01/02/2000' ;//String.ValueOf(Date.TODAY());
        controller.dateOfBirth = '01/02/2000' ;//dateBirth;
        controller.CreateApplication(); 
        
        drv_ctlr controller1 = new drv_ctlr();
        controller1.CreateApplication(); 
        
        /*drv_ctlr ctrl6 = new drv_ctlr();          
        ctrl6.Application.VRF_Visa_Type__c = 'Renewal Visa'; 
        ctrl6.Application.VRF_Available_In__c = 'Individual currently outside UAE'; // 
        ctrl6.application.Port_of_Entry__c = 'Dubai International Airport';
        ctrl6.Application.Title__c = 'Ms' ; 
        ctrl6.Application.First_Name__c = 'Ahmed' ;
        ctrl6.Application.Middle_Name__c = 'Adel' ;
        ctrl6.Application.Last_Name__c = 'Taha' ;
        ctrl6.application.Currently_Nationality__c = Countries.id;
        ctrl6.Application.Previous_Nationality__c  = Countries.id;
        ctrl6.Application.Date_of_Birth__c  = Date.TODAY().addYears(-40);
        ctrl6.Application.Country_of_Birth__c = Countries.id;
        ctrl6.Application.City_of_Birth__c  = 'Cairo' ;
        ctrl6.Application.Passport_Number__c = '123456' ;
        ctrl6.passportIssueDate = '01/02/2000' ;//String.ValueOf(Date.TODAY());
        ctrl6.passportExpiryDate = '01/02/2000' ;//String.ValueOf(Date.TODAY());
        ctrl6.Application.Passport_Country_of_Issue__c = Countries.id;
        ctrl6.Application.Passport_City_of_Issue__c = 'Alex' ;
        ctrl6.Application.Mother_Full_Name__c = 'Mona' ;
        ctrl6.Application.Marital_Status__c = 'Married' ;
        ctrl6.Application.Religion__c = 'bahaei' ;
        ctrl6.Application.Job_Title_Position__c = OCP.id; 
        ctrl6.Application.DRV_Relation_with_Sponser__c = 'Sister'; 
        ctrl6.Application.Gender__c = 'Female' ;
        ctrl6.Application.DRV_Sponser_Title__c = 'Mr';
        ctrl6.Application.DRV_Sponser_First_Name__c = 'Ahmed' ; 
        ctrl6.Application.DRV_Sponser_Middle_Name__c = 'Adel' ;
        ctrl6.Application.DRV_Sponser_Last_Name__c = 'Taha' ;
        ctrl6.Application.DRV_Sponser_Currently_Nationality__c = Countries.Id;
        ctrl6.Application.DRV_Sponser_Home_Phone__c = '2112121' ;
        ctrl6.Application.DRV_Sponser_Office_Phone__c = '2112' ;
        ctrl6.Application.DRV_Sponser_Visa_Number_1__c = '111';
        ctrl6.Application.DRV_Sponser_Visa_Number_2__c = '222';
        ctrl6.Application.DRV_Sponser_Visa_Number_3__c = '333';
        ctrl6.Application.DRV_Sponser_Passport_Number__c = '12';
        ctrl6.Application.DRV_Sponser_Company_Name__c = acc.Id;
        ctrl6.SponserPassportExpiry = '01/02/2000' ;//String.ValueOf(Date.TODAY());
        ctrl6.SponserResidencyExpiry = '01/02/2000' ;//String.ValueOf(Date.TODAY());
        ctrl6.SponserDate = '01/02/2000' ;//String.ValueOf(Date.TODAY());
        ctrl6.dateOfBirth = '01/02/2000' ;//dateBirth;
        ctrl6.CreateApplication(); 
        
        drv_ctlr ctrl7 = new drv_ctlr();  
        ctrl7 = ctrl5 ;
        ctrl7.Application.VRF_Visa_Type__c = 'New Visa'; 
        ctrl7.Application.VRF_Available_In__c = 'Individual currently inside UAE'; // 
        ctrl7.CreateApplication();
        
        drv_ctlr ctrl8 = new drv_ctlr();  
        ctrl8 = ctrl5 ;
        ctrl8.Application.VRF_Visa_Type__c = 'New Visa'; 
        ctrl8.Application.VRF_Available_In__c = 'Transfer of visa'; // 
        ctrl8.CreateApplication();
        
        drv_ctlr ctrl9 = new drv_ctlr();  
        ctrl9 = ctrl5 ;
        ctrl9.Application.VRF_Visa_Type__c = 'New Visa'; 
        ctrl9.Application.VRF_Available_In__c = 'New Born Baby'; // 
        ctrl9.CreateApplication();*/
        test.stoptest();
        
    }
    
}